//引入模板的全局的样式
import '@/styles/index.scss'
import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
//引入自定义插件对象:注册整个项目全局组件
import gloalComponent from '@/components'
//引入路由
import router from './router'
//引入仓库
import pinia from './store'
//引入路由鉴权文件
import './permisstion'
//导入自定义指令
import { isHasButton } from '@/directive/has';
const app = createApp(App)
//注册模板路由
app.use(router)
//安装仓库
app.use(pinia);

isHasButton(app);

app.use(ElementPlus)
//安装自定义插件
app.use(gloalComponent)
app.mount('#app')
